package com.way.service;

import com.way.pojo.User;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 魏彪
 */
@Component
public class MobileUserService {

    public User loadByWechat(User user) {
        user.setRole("01");
        user.setOpenId("openId");
        user.setUnionId("unionId");
        user.setLoginTm(new Date());
        return user;
    }
}
